<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<meta http-equiv="X-UA-Compatible" content="IE=7" />
	<meta http-equiv="MSThemeCompatible" content="no" />
	<title>Lady2Shop SCM</title>
	<!--<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />-->
	<script src="/javascripts/jquery.js" type="text/javascript" language="javascript"></script>
	<%= javascript_include_tag 'jquery-ui-full.min' %>
	<script src="/javascripts/application.js" type="text/javascript" language="javascript"></script>
	<script src="/javascripts/nav.js" type="text/javascript" language="javascript"></script>
	<link rel="stylesheet" href="/stylesheets/ui-lightness/jquery-ui-1.7.2.custom.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link href="/stylesheets/layout.css" rel="stylesheet" type="text/css" media="screen" />
	<script type="text/javascript">
	$(function(){
		$("#close_flash_msg").live('click', function(){
			$("#msg").remove();
			return false;	
		});
	});
	</script>
</head>
<body id="index">
	<div id="scene">
		<div id="page">
			<div class="clearfix" id="header">
				<div id="login"><%= logined_admin_user%>， <%=link_to '注销',admin_sessions_path,:method => :delete%>&nbsp;|&nbsp;修改密码</div>
				<div id="logo"><a href="/"> </a></div>
				<div id="nav" class="nav">
					<ul>
						<li><a href="/admin/items" rel="subnav1">商品</a></li>
						<li><a href="/admin/shops" rel="subnav_shops">店铺</a></li>
						<li><a href="/admin/cms" rel="subnav_cms">CMS</a></li>
					</ul>
				</div>
				<script type="text/javascript">
				ddlevelsmenu.setup("nav", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
				</script>
				<ul id="subnav1" class="subnav">
					<li><a href="/admin/item_categories" >商品分类</a></li>
					<li><a href="/admin/items" >商品查询</a></li>
					<li><a href="/products/new" >新增商品</a></li>
					<li><a href="/products/import" >导入商品</a></li>
					<li><a href="/brands" >品牌查询</a></li>
					<li><a href="/brands/new" >新增品牌</a></li>
					<li><a href="/tags" >新增标签</a></li>
					<li><a href="/competitor_products">其他商品查询</a></li>
				</ul>
				<ul id="subnav_shops" class="subnav">
					<li><a href="/shops">店铺查询</a></li>
				</ul>
				<ul id="subnav_cms" class="subnav">
					<li><a href="/admin/cms">首页管理</a></li>
					<li><a href="/admin/cms/shops">店铺管理</a></li>
					<li><a href="/admin/cms">广告管理</a></li>
				</ul>
			</div>
			<div class="clearfix" id="content">
				<%= yield %>
			</div>
		</div>
		<% if flash[:notice] || flash[:error] %>
		<div id="msg" class="<%= flash[:notice].nil? ? 'err' : 'ok' %>">
			<div>
				<a class="btt fr" href="#" id="close_flash_msg">关闭</a>
				<%= flash[:notice] %>
				<%= flash[:error] %>
			</div>
		</div>
		<% end %>
		<div id="loading" style="display:none;position:fixed; top:200px;background: #ccc;align:center; width:100%">
			<p align="center">loading....</p>
		</div>
  </div>
<%= yield :window_box %>
</body>
</html>
